// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from "vue";
import {
  DatetimePlugin,
  AlertPlugin,
  ConfirmPlugin,
  LoadingPlugin,
  ToastPlugin
} from "vux";
import router from "./router/router.config";
import store from "./store/index.js";
import "./scripts/base";
import axios from "axios";
import ApiService from "./service/getData.js";
import "./directive/validate.js";
Vue.config.productionTip = false;

//使用时间组件
Vue.use(DatetimePlugin);
//弹框
Vue.use(AlertPlugin);
//操作框
Vue.use(ConfirmPlugin);
//loading
Vue.use(LoadingPlugin);
Vue.use(ToastPlugin);
//api服务
Vue.prototype.apiService = new ApiService();

/**设置项目名称 */
Vue.prototype.COMPANY_GAME_NAME = "河北家乡棋牌";

/* eslint-disable no-new */
export default new Vue({
  router,
  // 把 store 对象提供给 “store” 选项，这可以把 store 的实例注入所有的子组件
  store
}).$mount("#app");
